package com.qf.dynamicdatasource;

public class DBNameThreadLocal {

    private static ThreadLocal<String> threadLocal= new ThreadLocal<>();

    public static void setDbName(String dbName){
        threadLocal.set(dbName);
    }

    public static  String getDbName(){
        return threadLocal.get();
    }
}
